import React, { Component } from 'react';
import { My } from './style'
class index extends Component {
    render() {
        console.log(this.props);
        return (
            <My>
                <div className="login">
                    <div className="deng">
                        <div className="tou">
                            <img src="https://img0.baidu.com/it/u=1051750546,2567387195&fm=11&fmt=auto&gp=0.jpg" alt="" />
                        </div>
                        <div className="lu">
                            {
                                localStorage.name ? 
                                localStorage.name :
                                <span onClick={e => {
                                    this.props.history.push('/login')
                                }}>立即登录</span>
                            }
                        </div>
                    </div>
                </div>
                <div className="ding">
                    <div>电影订单</div>
                    <div>商品订单</div>
                </div>
                <div className="list">
                    <ul>
                        <li onClick={()=>{
                            this.props.history.push('/Liulan')
                        }}><p>历史记录</p><p>&gt;</p></li>
                        <li><p>组合红包</p><p>&gt;</p></li>
                        <li><p>余额</p><p>&gt;</p></li>
                        <li><p>设置</p><p>&gt;</p></li>
                    </ul>
                </div>
            </My>
        );
    }
}

export default index;
